package com.angelhack.metrosocial.ui;

import com.angelhack.metrosocial.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings;
import android.webkit.WebSettings.ZoomDensity;
import android.webkit.WebView;

public class MetroMapOffline extends Fragment{

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		
		View mainView = inflater.inflate(R.layout.offline_map, null);
		WebView wv  = (WebView) mainView.findViewById(R.id.webViewMap);
		  WebSettings webSettings = wv.getSettings();
		    webSettings.setBuiltInZoomControls(true);
		    wv.getSettings().setDefaultZoom(ZoomDensity.FAR);
		    final String html = "<img src =\"file:///android_asset/metro_map.png\"/> ";
		    wv.loadDataWithBaseURL("", html, "text/html", "UTF-8", "");
		return mainView;
	}


	
}
